



<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

</head>
<body>
<script>

function Run(strPath) {
 try {
  var objShell = new ActiveXObject("wscript.shell");
  objShell.Run(strPath);
  objShell = null;
 }
  catch (e){alert('找不到文件"'+strPath+'"(或它的组件之一)。请确定路径和文件名是否正确，而且所需的库文件均可用。')
 }
}
</SCRIPT>请输入要运行的程序：<br />
<input value="regedit" name="exe"  type="text" /><button class="button" onclick="Run(exe.value)">确定</button><button class="button" onclick='exe.value="";'>重新输入</button><br />
<button class="button" onclick="Run('notepad')">记事本</button><br />
<button class="button" onclick="Run('mspaint')">画图板</button><br />
<button class="button" onclick="Run('calc')">计算器</button><br />
<button class="button" onclick="Run('cmd')">cmd</button><br />
<button class="button" onclick="Run('Regedit')">Regedit</button><br />
<button class="button" onclick="Run('Msconfig')">Msconfig</button><br />
<button class="button" onclick="Run("\"C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE"')">ie</button><br />
<button class="button" onclick="Run('IEXPLORE.EXE')">IE</button><br />
<button class="button" onclick="Run('..')">..</button><br />
<button class="button" onclick="Run('%windir%')">%windir%</button><br />
<button class="button" onclick="Run('%temp%')">%temp%</button><br />
<button class="button" onclick='Run("\"C:\\Program Files\\Tencent\\QQ\\QQ.exe")'>qq</button><br />
</script>
<script>
//对host这个域名允许自动弹窗
/*var shell = WScript.CreateObject("WScript.Shell");
var regKey = "HKCU\\Software\\Microsoft\\Internet Explorer\\New Windows\\Allow\\" + host;
shell.RegWrite(regKey, 0, "REG_BINARY");
    
*/
//shell.RegDelete(regKey);
</script>

<script>
/*
var shouldQuit = false;

function _eventsDocumentComplete(obj, url) {
  WScript.Echo(url);
}

function _eventsOnQuit() {
  shouldQuit = true;
}

var browser = WScript.createObject("InternetExplorer.Application", "_events");
browser.navigate2(host);
browser.visible = true;
while(!shouldQuit)
{
    WScript.sleep(100);
}
*/
</script>

</body>

</html>
